
class SimpleResponse {


  String? _msg;
  int _code;
  String startTime = "";
  String endTime = "";
  String avg = "";
  String? extra;
  bool completedProfile=false;

  Map<String, dynamic> data = {};
  int get code => _code;
  List<dynamic> data_list=[];

  int totalSize=0;
  int currentPage=0;

  SimpleResponse.simple_list(this._msg, this._code,{this.data_list=const []});
  SimpleResponse.simple_list_total(this._msg, this._code,{this.data_list=const [],this.totalSize=0,this.currentPage=1});


  SimpleResponse.simple(this._msg, this._code,{this.data=const {}});

  set code(int value) {
    _code = value;
  }

  String? get msg => _msg;

  set msg(String? value) {
    _msg = value;
  }

  bool isOk() {
    return code == 200;
  }
}
